<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>LCOV - mbi.info - test/impl/unit_test_parameters.ipp</title>
  <link rel="stylesheet" type="text/css" href="../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LTP GCOV extension - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
        <tr>
          <td class="headerItem" width="20%">Current&nbsp;view:</td>
          <td class="headerValue" width="80%" colspan=4><a href="../../index.html">directory</a> - <a href="index.html">test/impl</a> - unit_test_parameters.ipp</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Test:</td>
          <td class="headerValue" width="80%" colspan=4>mbi.info</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Date:</td>
          <td class="headerValue" width="20%">2010-01-23</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Instrumented&nbsp;lines:</td>
          <td class="headerValue" width="20%">110</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Code&nbsp;covered:</td>
          <td class="headerValue" width="20%">74.5 %</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Executed&nbsp;lines:</td>
          <td class="headerValue" width="20%">82</td>
        </tr>
        </table>
      </td>
    </tr>
    <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td><pre class="source">
<span class="lineNum">       1 </span>                : //  (C) Copyright Gennadiy Rozental 2001-2008.
<span class="lineNum">       2 </span>                : //  Distributed under the Boost Software License, Version 1.0.
<span class="lineNum">       3 </span>                : //  (See accompanying file LICENSE_1_0.txt or copy at
<span class="lineNum">       4 </span>                : //  http://www.boost.org/LICENSE_1_0.txt)
<span class="lineNum">       5 </span>                : 
<span class="lineNum">       6 </span>                : //  See http://www.boost.org/libs/test for the library home page.
<span class="lineNum">       7 </span>                : //
<span class="lineNum">       8 </span>                : //  File        : $RCSfile$
<span class="lineNum">       9 </span>                : //
<span class="lineNum">      10 </span>                : //  Version     : $Revision: 49312 $
<span class="lineNum">      11 </span>                : //
<span class="lineNum">      12 </span>                : //  Description : simple implementation for Unit Test Framework parameter
<span class="lineNum">      13 </span>                : //  handling routines. May be rewritten in future to use some kind of
<span class="lineNum">      14 </span>                : //  command-line arguments parsing facility and environment variable handling
<span class="lineNum">      15 </span>                : //  facility
<span class="lineNum">      16 </span>                : // ***************************************************************************
<span class="lineNum">      17 </span>                : 
<span class="lineNum">      18 </span>                : #ifndef BOOST_TEST_UNIT_TEST_PARAMETERS_IPP_012205GER
<span class="lineNum">      19 </span>                : #define BOOST_TEST_UNIT_TEST_PARAMETERS_IPP_012205GER
<span class="lineNum">      20 </span>                : 
<span class="lineNum">      21 </span>                : // Boost.Test
<span class="lineNum">      22 </span>                : #include &lt;boost/test/detail/unit_test_parameters.hpp&gt;
<span class="lineNum">      23 </span>                : #include &lt;boost/test/utils/basic_cstring/basic_cstring.hpp&gt;
<span class="lineNum">      24 </span>                : #include &lt;boost/test/utils/basic_cstring/compare.hpp&gt;
<span class="lineNum">      25 </span>                : #include &lt;boost/test/utils/basic_cstring/io.hpp&gt;
<span class="lineNum">      26 </span>                : #include &lt;boost/test/utils/fixed_mapping.hpp&gt;
<span class="lineNum">      27 </span>                : #include &lt;boost/test/debug.hpp&gt;
<span class="lineNum">      28 </span>                : 
<span class="lineNum">      29 </span>                : // Boost
<span class="lineNum">      30 </span>                : #include &lt;boost/config.hpp&gt;
<span class="lineNum">      31 </span>                : #include &lt;boost/test/detail/suppress_warnings.hpp&gt;
<span class="lineNum">      32 </span>                : #include &lt;boost/lexical_cast.hpp&gt;
<span class="lineNum">      33 </span>                : #include &lt;boost/test/detail/enable_warnings.hpp&gt;
<span class="lineNum">      34 </span>                : 
<span class="lineNum">      35 </span>                : // STL
<span class="lineNum">      36 </span>                : #include &lt;map&gt;
<span class="lineNum">      37 </span>                : #include &lt;cstdlib&gt;
<span class="lineNum">      38 </span>                : 
<span class="lineNum">      39 </span>                : #include &lt;boost/test/detail/suppress_warnings.hpp&gt;
<span class="lineNum">      40 </span>                : 
<span class="lineNum">      41 </span>                : //____________________________________________________________________________//
<span class="lineNum">      42 </span>                : 
<span class="lineNum">      43 </span>                : # ifdef BOOST_NO_STDC_NAMESPACE
<span class="lineNum">      44 </span>                : namespace std { using ::getenv; using ::strncmp; using ::strcmp; }
<span class="lineNum">      45 </span>                : # endif
<span class="lineNum">      46 </span>                : 
<span class="lineNum">      47 </span>                : namespace boost {
<span class="lineNum">      48 </span>                : 
<span class="lineNum">      49 </span>                : namespace unit_test {
<span class="lineNum">      50 </span>                : 
<span class="lineNum">      51 </span>                : namespace {
<span class="lineNum">      52 </span>                : 
<span class="lineNum">      53 </span>                : // framework parameters and there corresponding command-line arguments
<span class="lineNum">      54 </span><span class="lineCov">              2 : literal_string LOG_LEVEL         = &quot;BOOST_TEST_LOG_LEVEL&quot;;</span>
<span class="lineNum">      55 </span><span class="lineCov">              2 : literal_string NO_RESULT_CODE    = &quot;BOOST_TEST_RESULT_CODE&quot;;</span>
<span class="lineNum">      56 </span><span class="lineCov">              2 : literal_string REPORT_LEVEL      = &quot;BOOST_TEST_REPORT_LEVEL&quot;;</span>
<span class="lineNum">      57 </span><span class="lineCov">              2 : literal_string TESTS_TO_RUN      = &quot;BOOST_TESTS_TO_RUN&quot;;</span>
<span class="lineNum">      58 </span><span class="lineCov">              2 : literal_string SAVE_TEST_PATTERN = &quot;BOOST_TEST_SAVE_PATTERN&quot;;</span>
<span class="lineNum">      59 </span><span class="lineCov">              2 : literal_string BUILD_INFO        = &quot;BOOST_TEST_BUILD_INFO&quot;;</span>
<span class="lineNum">      60 </span><span class="lineCov">              2 : literal_string SHOW_PROGRESS     = &quot;BOOST_TEST_SHOW_PROGRESS&quot;;</span>
<span class="lineNum">      61 </span><span class="lineCov">              2 : literal_string CATCH_SYS_ERRORS  = &quot;BOOST_TEST_CATCH_SYSTEM_ERRORS&quot;;</span>
<span class="lineNum">      62 </span><span class="lineCov">              2 : literal_string AUTO_START_DBG    = &quot;BOOST_TEST_AUTO_START_DBG&quot;;</span>
<span class="lineNum">      63 </span><span class="lineCov">              2 : literal_string USE_ALT_STACK     = &quot;BOOST_TEST_USE_ALT_STACK&quot;;</span>
<span class="lineNum">      64 </span><span class="lineCov">              2 : literal_string DETECT_FP_EXCEPT  = &quot;BOOST_TEST_DETECT_FP_EXCEPTIONS&quot;;</span>
<span class="lineNum">      65 </span><span class="lineCov">              2 : literal_string REPORT_FORMAT     = &quot;BOOST_TEST_REPORT_FORMAT&quot;;</span>
<span class="lineNum">      66 </span><span class="lineCov">              2 : literal_string LOG_FORMAT        = &quot;BOOST_TEST_LOG_FORMAT&quot;;</span>
<span class="lineNum">      67 </span><span class="lineCov">              2 : literal_string OUTPUT_FORMAT     = &quot;BOOST_TEST_OUTPUT_FORMAT&quot;;</span>
<span class="lineNum">      68 </span><span class="lineCov">              2 : literal_string DETECT_MEM_LEAK   = &quot;BOOST_TEST_DETECT_MEMORY_LEAK&quot;;</span>
<span class="lineNum">      69 </span><span class="lineCov">              2 : literal_string RANDOM_SEED       = &quot;BOOST_TEST_RANDOM&quot;;</span>
<span class="lineNum">      70 </span><span class="lineCov">              2 : literal_string BREAK_EXEC_PATH   = &quot;BOOST_TEST_BREAK_EXEC_PATH&quot;;</span>
<span class="lineNum">      71 </span>                : 
<span class="lineNum">      72 </span>                : unit_test::log_level    s_log_level;
<span class="lineNum">      73 </span>                : bool                    s_no_result_code;
<span class="lineNum">      74 </span>                : unit_test::report_level s_report_level;
<span class="lineNum">      75 </span><span class="lineCov">              2 : const_string            s_tests_to_run;</span>
<span class="lineNum">      76 </span><span class="lineCov">              2 : const_string            s_exec_path_to_break;</span>
<span class="lineNum">      77 </span>                : bool                    s_save_pattern;
<span class="lineNum">      78 </span>                : bool                    s_show_build_info;
<span class="lineNum">      79 </span>                : bool                    s_show_progress;
<span class="lineNum">      80 </span>                : bool                    s_catch_sys_errors;
<span class="lineNum">      81 </span>                : bool                    s_auto_start_dbg;
<span class="lineNum">      82 </span>                : bool                    s_use_alt_stack;
<span class="lineNum">      83 </span>                : bool                    s_detect_fp_except;
<span class="lineNum">      84 </span>                : output_format           s_report_format;
<span class="lineNum">      85 </span>                : output_format           s_log_format;
<span class="lineNum">      86 </span>                : long                    s_detect_mem_leaks;
<span class="lineNum">      87 </span>                : unsigned int            s_random_seed;
<span class="lineNum">      88 </span>                : 
<span class="lineNum">      89 </span>                : // ************************************************************************** //
<span class="lineNum">      90 </span>                : // **************                 runtime_config               ************** //
<span class="lineNum">      91 </span>                : // ************************************************************************** //
<span class="lineNum">      92 </span>                : 
<span class="lineNum">      93 </span>                : const_string
<span class="lineNum">      94 </span><span class="lineCov">             34 : retrieve_framework_parameter( const_string parameter_name, int* argc, char** argv )</span>
<span class="lineNum">      95 </span>                : {
<span class="lineNum">      96 </span>                :     static fixed_mapping&lt;const_string,const_string&gt; parameter_2_cla_name_map(
<span class="lineNum">      97 </span>                :         LOG_LEVEL         , &quot;--log_level&quot;,
<span class="lineNum">      98 </span>                :         NO_RESULT_CODE    , &quot;--result_code&quot;,
<span class="lineNum">      99 </span>                :         REPORT_LEVEL      , &quot;--report_level&quot;,
<span class="lineNum">     100 </span>                :         TESTS_TO_RUN      , &quot;--run_test&quot;,
<span class="lineNum">     101 </span>                :         SAVE_TEST_PATTERN , &quot;--save_pattern&quot;,
<span class="lineNum">     102 </span>                :         BUILD_INFO        , &quot;--build_info&quot;,
<span class="lineNum">     103 </span>                :         SHOW_PROGRESS     , &quot;--show_progress&quot;,
<span class="lineNum">     104 </span>                :         CATCH_SYS_ERRORS  , &quot;--catch_system_errors&quot;,
<span class="lineNum">     105 </span>                :         AUTO_START_DBG    , &quot;--auto_start_dbg&quot;,
<span class="lineNum">     106 </span>                :         USE_ALT_STACK     , &quot;--use_alt_stack&quot;,        
<span class="lineNum">     107 </span>                :         DETECT_FP_EXCEPT  , &quot;--detect_fp_exceptions&quot;,        
<span class="lineNum">     108 </span>                :         REPORT_FORMAT     , &quot;--report_format&quot;,
<span class="lineNum">     109 </span>                :         LOG_FORMAT        , &quot;--log_format&quot;,
<span class="lineNum">     110 </span>                :         OUTPUT_FORMAT     , &quot;--output_format&quot;,
<span class="lineNum">     111 </span>                :         DETECT_MEM_LEAK   , &quot;--detect_memory_leaks&quot;,
<span class="lineNum">     112 </span>                :         RANDOM_SEED       , &quot;--random&quot;,
<span class="lineNum">     113 </span>                :         BREAK_EXEC_PATH   , &quot;--break_exec_path&quot;,
<span class="lineNum">     114 </span>                :         
<span class="lineNum">     115 </span>                :         &quot;&quot;
<span class="lineNum">     116 </span><span class="lineCov">             34 :     );</span>
<span class="lineNum">     117 </span>                : 
<span class="lineNum">     118 </span>                :     // first try to find parameter among command line arguments if present
<span class="lineNum">     119 </span><span class="lineCov">             34 :     if( argc ) {</span>
<span class="lineNum">     120 </span>                :         // locate corresponding cla name
<span class="lineNum">     121 </span><span class="lineCov">             34 :         const_string cla_name = parameter_2_cla_name_map[parameter_name];</span>
<span class="lineNum">     122 </span>                : 
<span class="lineNum">     123 </span><span class="lineCov">             34 :         if( !cla_name.is_empty() ) {</span>
<span class="lineNum">     124 </span><span class="lineCov">             34 :             for( int i = 1; i &lt; *argc; ++i ) {</span>
<span class="lineNum">     125 </span><span class="lineNoCov">              0 :                 if( cla_name == const_string( argv[i], cla_name.size() ) &amp;&amp; argv[i][cla_name.size()] == '=' ) {</span>
<span class="lineNum">     126 </span><span class="lineNoCov">              0 :                     const_string result = argv[i] + cla_name.size() + 1;</span>
<span class="lineNum">     127 </span>                : 
<span class="lineNum">     128 </span><span class="lineNoCov">              0 :                     for( int j = i; j &lt; *argc; ++j ) {</span>
<span class="lineNum">     129 </span><span class="lineNoCov">              0 :                         argv[j] = argv[j+1];</span>
<span class="lineNum">     130 </span>                :                     }
<span class="lineNum">     131 </span><span class="lineNoCov">              0 :                     --(*argc);</span>
<span class="lineNum">     132 </span>                : 
<span class="lineNum">     133 </span><span class="lineNoCov">              0 :                     return result;</span>
<span class="lineNum">     134 </span>                :                 }
<span class="lineNum">     135 </span>                :             }
<span class="lineNum">     136 </span>                :         }
<span class="lineNum">     137 </span>                :     }
<span class="lineNum">     138 </span>                : 
<span class="lineNum">     139 </span><span class="lineCov">             34 :     return std::getenv( parameter_name.begin() );</span>
<span class="lineNum">     140 </span>                : }
<span class="lineNum">     141 </span>                : 
<span class="lineNum">     142 </span><span class="lineNoCov">              0 : long interpret_long( const_string from )</span>
<span class="lineNum">     143 </span>                : {
<span class="lineNum">     144 </span><span class="lineNoCov">              0 :     bool negative = false;</span>
<span class="lineNum">     145 </span><span class="lineNoCov">              0 :     long res = 0;</span>
<span class="lineNum">     146 </span>                : 
<span class="lineNum">     147 </span><span class="lineNoCov">              0 :     if( first_char( from ) == '-' ) {</span>
<span class="lineNum">     148 </span><span class="lineNoCov">              0 :         negative = true;</span>
<span class="lineNum">     149 </span><span class="lineNoCov">              0 :         from.trim_left( 1 );</span>
<span class="lineNum">     150 </span>                :     }
<span class="lineNum">     151 </span>                : 
<span class="lineNum">     152 </span><span class="lineNoCov">              0 :     const_string::iterator it = from.begin();</span>
<span class="lineNum">     153 </span><span class="lineNoCov">              0 :     for( ;it != from.end(); ++it ) {</span>
<span class="lineNum">     154 </span><span class="lineNoCov">              0 :         int d = *it - '0';</span>
<span class="lineNum">     155 </span>                : 
<span class="lineNum">     156 </span><span class="lineNoCov">              0 :         res = 10 * res + d;</span>
<span class="lineNum">     157 </span>                :     }
<span class="lineNum">     158 </span>                : 
<span class="lineNum">     159 </span><span class="lineNoCov">              0 :     if( negative )</span>
<span class="lineNum">     160 </span><span class="lineNoCov">              0 :         res = -res;</span>
<span class="lineNum">     161 </span>                : 
<span class="lineNum">     162 </span><span class="lineNoCov">              0 :     return res;</span>
<span class="lineNum">     163 </span>                : }
<span class="lineNum">     164 </span>                : 
<span class="lineNum">     165 </span>                : } // local namespace
<span class="lineNum">     166 </span>                : 
<span class="lineNum">     167 </span>                : //____________________________________________________________________________//
<span class="lineNum">     168 </span>                : 
<span class="lineNum">     169 </span>                : namespace runtime_config {
<span class="lineNum">     170 </span>                : 
<span class="lineNum">     171 </span>                : void
<span class="lineNum">     172 </span><span class="lineCov">              2 : init( int* argc, char** argv )</span>
<span class="lineNum">     173 </span>                : {
<span class="lineNum">     174 </span>                :     fixed_mapping&lt;const_string,unit_test::log_level,case_ins_less&lt;char const&gt; &gt; log_level_name(
<span class="lineNum">     175 </span>                :         &quot;all&quot;           , log_successful_tests,
<span class="lineNum">     176 </span>                :         &quot;success&quot;       , log_successful_tests,
<span class="lineNum">     177 </span>                :         &quot;test_suite&quot;    , log_test_units,
<span class="lineNum">     178 </span>                :         &quot;unit_scope&quot;    , log_test_units,
<span class="lineNum">     179 </span>                :         &quot;message&quot;       , log_messages,
<span class="lineNum">     180 </span>                :         &quot;warning&quot;       , log_warnings,
<span class="lineNum">     181 </span>                :         &quot;error&quot;         , log_all_errors,
<span class="lineNum">     182 </span>                :         &quot;cpp_exception&quot; , log_cpp_exception_errors,
<span class="lineNum">     183 </span>                :         &quot;system_error&quot;  , log_system_errors,
<span class="lineNum">     184 </span>                :         &quot;fatal_error&quot;   , log_fatal_errors,
<span class="lineNum">     185 </span>                :         &quot;nothing&quot;       , log_nothing,
<span class="lineNum">     186 </span>                : 
<span class="lineNum">     187 </span>                :         invalid_log_level
<span class="lineNum">     188 </span><span class="lineCov">              2 :     );</span>
<span class="lineNum">     189 </span>                : 
<span class="lineNum">     190 </span>                :     fixed_mapping&lt;const_string,unit_test::report_level,case_ins_less&lt;char const&gt; &gt; report_level_name (
<span class="lineNum">     191 </span>                :         &quot;confirm&quot;,  CONFIRMATION_REPORT,
<span class="lineNum">     192 </span>                :         &quot;short&quot;,    SHORT_REPORT,
<span class="lineNum">     193 </span>                :         &quot;detailed&quot;, DETAILED_REPORT,
<span class="lineNum">     194 </span>                :         &quot;no&quot;,       NO_REPORT,
<span class="lineNum">     195 </span>                : 
<span class="lineNum">     196 </span>                :         INV_REPORT_LEVEL
<span class="lineNum">     197 </span><span class="lineCov">              2 :     );</span>
<span class="lineNum">     198 </span>                : 
<span class="lineNum">     199 </span>                :     fixed_mapping&lt;const_string,output_format,case_ins_less&lt;char const&gt; &gt; output_format_name (
<span class="lineNum">     200 </span>                :         &quot;HRF&quot;, CLF,
<span class="lineNum">     201 </span>                :         &quot;CLF&quot;, CLF,
<span class="lineNum">     202 </span>                :         &quot;XML&quot;, XML,
<span class="lineNum">     203 </span>                : 
<span class="lineNum">     204 </span>                :         CLF
<span class="lineNum">     205 </span><span class="lineCov">              2 :     );</span>
<span class="lineNum">     206 </span>                : 
<span class="lineNum">     207 </span><span class="lineCov">              2 :     s_no_result_code    = retrieve_framework_parameter( NO_RESULT_CODE, argc, argv ) == &quot;no&quot;;</span>
<span class="lineNum">     208 </span><span class="lineCov">              2 :     s_save_pattern      = retrieve_framework_parameter( SAVE_TEST_PATTERN, argc, argv ) == &quot;yes&quot;;</span>
<span class="lineNum">     209 </span><span class="lineCov">              2 :     s_show_build_info   = retrieve_framework_parameter( BUILD_INFO, argc, argv ) == &quot;yes&quot;;</span>
<span class="lineNum">     210 </span><span class="lineCov">              2 :     s_show_progress     = retrieve_framework_parameter( SHOW_PROGRESS, argc, argv ) == &quot;yes&quot;;</span>
<span class="lineNum">     211 </span>                : #ifdef BOOST_TEST_DEFAULTS_TO_CORE_DUMP
<span class="lineNum">     212 </span>                :     s_catch_sys_errors  = retrieve_framework_parameter( CATCH_SYS_ERRORS, argc, argv ) == &quot;yes&quot;;
<span class="lineNum">     213 </span>                : #else
<span class="lineNum">     214 </span><span class="lineCov">              2 :     s_catch_sys_errors  = retrieve_framework_parameter( CATCH_SYS_ERRORS, argc, argv ) != &quot;no&quot;;</span>
<span class="lineNum">     215 </span>                : #endif
<span class="lineNum">     216 </span><span class="lineCov">              2 :     s_use_alt_stack     = retrieve_framework_parameter( USE_ALT_STACK, argc, argv ) != &quot;no&quot;;</span>
<span class="lineNum">     217 </span><span class="lineCov">              2 :     s_detect_fp_except  = retrieve_framework_parameter( DETECT_FP_EXCEPT, argc, argv ) == &quot;yes&quot;;</span>
<span class="lineNum">     218 </span><span class="lineCov">              2 :     s_tests_to_run      = retrieve_framework_parameter( TESTS_TO_RUN, argc, argv );</span>
<span class="lineNum">     219 </span><span class="lineCov">              2 :     s_exec_path_to_break= retrieve_framework_parameter( BREAK_EXEC_PATH, argc, argv );</span>
<span class="lineNum">     220 </span>                : 
<span class="lineNum">     221 </span><span class="lineCov">              2 :     const_string rs_str = retrieve_framework_parameter( RANDOM_SEED, argc, argv );</span>
<span class="lineNum">     222 </span><span class="lineCov">              2 :     s_random_seed       = rs_str.is_empty() ? 0 : lexical_cast&lt;unsigned int&gt;( rs_str );</span>
<span class="lineNum">     223 </span>                :     
<span class="lineNum">     224 </span><span class="lineCov">              2 :     s_log_level         = log_level_name[retrieve_framework_parameter( LOG_LEVEL, argc, argv )];</span>
<span class="lineNum">     225 </span><span class="lineCov">              2 :     s_report_level      = report_level_name[retrieve_framework_parameter( REPORT_LEVEL, argc, argv )];</span>
<span class="lineNum">     226 </span>                : 
<span class="lineNum">     227 </span><span class="lineCov">              2 :     s_report_format     = output_format_name[retrieve_framework_parameter( REPORT_FORMAT, argc, argv )];</span>
<span class="lineNum">     228 </span><span class="lineCov">              2 :     s_log_format        = output_format_name[retrieve_framework_parameter( LOG_FORMAT, argc, argv )];</span>
<span class="lineNum">     229 </span>                : 
<span class="lineNum">     230 </span><span class="lineCov">              2 :     const_string output_format = retrieve_framework_parameter( OUTPUT_FORMAT, argc, argv );</span>
<span class="lineNum">     231 </span><span class="lineCov">              2 :     if( !output_format.is_empty() ) {</span>
<span class="lineNum">     232 </span><span class="lineNoCov">              0 :         s_report_format     = output_format_name[output_format];</span>
<span class="lineNum">     233 </span><span class="lineNoCov">              0 :         s_log_format        = output_format_name[output_format];</span>
<span class="lineNum">     234 </span>                :     }
<span class="lineNum">     235 </span>                : 
<span class="lineNum">     236 </span><span class="lineCov">              2 :     const_string ml_str = retrieve_framework_parameter( DETECT_MEM_LEAK, argc, argv );</span>
<span class="lineNum">     237 </span><span class="lineCov">              2 :     s_detect_mem_leaks  =  ml_str.is_empty() ? 1 : interpret_long( ml_str );</span>
<span class="lineNum">     238 </span>                : 
<span class="lineNum">     239 </span><span class="lineCov">              2 :     const_string dbg = retrieve_framework_parameter( AUTO_START_DBG, argc, argv );</span>
<span class="lineNum">     240 </span>                : 
<span class="lineNum">     241 </span><span class="lineCov">              2 :     if( dbg.is_empty() || dbg == &quot;no&quot; )</span>
<span class="lineNum">     242 </span><span class="lineCov">              2 :         s_auto_start_dbg = false;</span>
<span class="lineNum">     243 </span>                :     else {
<span class="lineNum">     244 </span><span class="lineNoCov">              0 :         s_auto_start_dbg = true;</span>
<span class="lineNum">     245 </span>                : 
<span class="lineNum">     246 </span><span class="lineNoCov">              0 :         if( dbg != &quot;yes&quot; )</span>
<span class="lineNum">     247 </span><span class="lineNoCov">              0 :             debug::set_debugger( dbg );</span>
<span class="lineNum">     248 </span><span class="lineCov">              2 :     }</span>
<span class="lineNum">     249 </span><span class="lineCov">              2 : }</span>
<span class="lineNum">     250 </span>                : 
<span class="lineNum">     251 </span>                : //____________________________________________________________________________//
<span class="lineNum">     252 </span>                : 
<span class="lineNum">     253 </span>                : unit_test::log_level
<span class="lineNum">     254 </span><span class="lineCov">              2 : log_level()</span>
<span class="lineNum">     255 </span>                : {
<span class="lineNum">     256 </span><span class="lineCov">              2 :     return s_log_level;</span>
<span class="lineNum">     257 </span>                : }
<span class="lineNum">     258 </span>                : 
<span class="lineNum">     259 </span>                : //____________________________________________________________________________//
<span class="lineNum">     260 </span>                : 
<span class="lineNum">     261 </span>                : bool
<span class="lineNum">     262 </span><span class="lineCov">              2 : no_result_code()</span>
<span class="lineNum">     263 </span>                : {
<span class="lineNum">     264 </span><span class="lineCov">              2 :     return s_no_result_code;</span>
<span class="lineNum">     265 </span>                : }
<span class="lineNum">     266 </span>                : 
<span class="lineNum">     267 </span>                : //____________________________________________________________________________//
<span class="lineNum">     268 </span>                : 
<span class="lineNum">     269 </span>                : unit_test::report_level
<span class="lineNum">     270 </span><span class="lineCov">              2 : report_level()</span>
<span class="lineNum">     271 </span>                : {
<span class="lineNum">     272 </span><span class="lineCov">              2 :     return s_report_level;</span>
<span class="lineNum">     273 </span>                : }
<span class="lineNum">     274 </span>                : 
<span class="lineNum">     275 </span>                : //____________________________________________________________________________//
<span class="lineNum">     276 </span>                : 
<span class="lineNum">     277 </span>                : const_string
<span class="lineNum">     278 </span><span class="lineCov">              2 : test_to_run()</span>
<span class="lineNum">     279 </span>                : {
<span class="lineNum">     280 </span><span class="lineCov">              2 :     return s_tests_to_run;</span>
<span class="lineNum">     281 </span>                : }
<span class="lineNum">     282 </span>                : 
<span class="lineNum">     283 </span>                : //____________________________________________________________________________//
<span class="lineNum">     284 </span>                : 
<span class="lineNum">     285 </span>                : const_string
<span class="lineNum">     286 </span><span class="lineNoCov">              0 : break_exec_path()</span>
<span class="lineNum">     287 </span>                : {
<span class="lineNum">     288 </span><span class="lineNoCov">              0 :     return s_exec_path_to_break;</span>
<span class="lineNum">     289 </span>                : }
<span class="lineNum">     290 </span>                : 
<span class="lineNum">     291 </span>                : //____________________________________________________________________________//
<span class="lineNum">     292 </span>                : 
<span class="lineNum">     293 </span>                : bool
<span class="lineNum">     294 </span><span class="lineNoCov">              0 : save_pattern()</span>
<span class="lineNum">     295 </span>                : {
<span class="lineNum">     296 </span><span class="lineNoCov">              0 :     return s_save_pattern;</span>
<span class="lineNum">     297 </span>                : }
<span class="lineNum">     298 </span>                : 
<span class="lineNum">     299 </span>                : //____________________________________________________________________________//
<span class="lineNum">     300 </span>                : 
<span class="lineNum">     301 </span>                : bool
<span class="lineNum">     302 </span><span class="lineCov">              2 : show_progress()</span>
<span class="lineNum">     303 </span>                : {
<span class="lineNum">     304 </span><span class="lineCov">              2 :     return s_show_progress;</span>
<span class="lineNum">     305 </span>                : }
<span class="lineNum">     306 </span>                : 
<span class="lineNum">     307 </span>                : //____________________________________________________________________________//
<span class="lineNum">     308 </span>                : 
<span class="lineNum">     309 </span>                : bool
<span class="lineNum">     310 </span><span class="lineCov">              2 : show_build_info()</span>
<span class="lineNum">     311 </span>                : {
<span class="lineNum">     312 </span><span class="lineCov">              2 :     return s_show_build_info;</span>
<span class="lineNum">     313 </span>                : }
<span class="lineNum">     314 </span>                : 
<span class="lineNum">     315 </span>                : //____________________________________________________________________________//
<span class="lineNum">     316 </span>                : 
<span class="lineNum">     317 </span>                : bool
<span class="lineNum">     318 </span><span class="lineCov">              7 : catch_sys_errors()</span>
<span class="lineNum">     319 </span>                : {
<span class="lineNum">     320 </span><span class="lineCov">              7 :     return s_catch_sys_errors;</span>
<span class="lineNum">     321 </span>                : }
<span class="lineNum">     322 </span>                : 
<span class="lineNum">     323 </span>                : //____________________________________________________________________________//
<span class="lineNum">     324 </span>                : 
<span class="lineNum">     325 </span>                : bool
<span class="lineNum">     326 </span><span class="lineCov">              7 : auto_start_dbg()</span>
<span class="lineNum">     327 </span>                : {
<span class="lineNum">     328 </span><span class="lineCov">              7 :     return s_auto_start_dbg;</span>
<span class="lineNum">     329 </span>                : }
<span class="lineNum">     330 </span>                : 
<span class="lineNum">     331 </span>                : //____________________________________________________________________________//
<span class="lineNum">     332 </span>                : 
<span class="lineNum">     333 </span>                : bool
<span class="lineNum">     334 </span><span class="lineCov">              7 : use_alt_stack()</span>
<span class="lineNum">     335 </span>                : {
<span class="lineNum">     336 </span><span class="lineCov">              7 :     return s_use_alt_stack;</span>
<span class="lineNum">     337 </span>                : }
<span class="lineNum">     338 </span>                : 
<span class="lineNum">     339 </span>                : //____________________________________________________________________________//
<span class="lineNum">     340 </span>                : 
<span class="lineNum">     341 </span>                : bool
<span class="lineNum">     342 </span><span class="lineCov">              7 : detect_fp_exceptions()</span>
<span class="lineNum">     343 </span>                : {
<span class="lineNum">     344 </span><span class="lineCov">              7 :     return s_detect_fp_except;</span>
<span class="lineNum">     345 </span>                : }
<span class="lineNum">     346 </span>                : 
<span class="lineNum">     347 </span>                : //____________________________________________________________________________//
<span class="lineNum">     348 </span>                : 
<span class="lineNum">     349 </span>                : output_format
<span class="lineNum">     350 </span><span class="lineCov">              2 : report_format()</span>
<span class="lineNum">     351 </span>                : {
<span class="lineNum">     352 </span><span class="lineCov">              2 :     return s_report_format;</span>
<span class="lineNum">     353 </span>                : }
<span class="lineNum">     354 </span>                : 
<span class="lineNum">     355 </span>                : //____________________________________________________________________________//
<span class="lineNum">     356 </span>                : 
<span class="lineNum">     357 </span>                : output_format
<span class="lineNum">     358 </span><span class="lineCov">              2 : log_format()</span>
<span class="lineNum">     359 </span>                : {
<span class="lineNum">     360 </span><span class="lineCov">              2 :     return s_log_format;</span>
<span class="lineNum">     361 </span>                : }
<span class="lineNum">     362 </span>                : 
<span class="lineNum">     363 </span>                : //____________________________________________________________________________//
<span class="lineNum">     364 </span>                : 
<span class="lineNum">     365 </span>                : long
<span class="lineNum">     366 </span><span class="lineCov">              4 : detect_memory_leaks()</span>
<span class="lineNum">     367 </span>                : {
<span class="lineNum">     368 </span><span class="lineCov">              4 :     return s_detect_mem_leaks;</span>
<span class="lineNum">     369 </span>                : }
<span class="lineNum">     370 </span>                : 
<span class="lineNum">     371 </span>                : //____________________________________________________________________________//
<span class="lineNum">     372 </span>                : 
<span class="lineNum">     373 </span>                : int
<span class="lineNum">     374 </span><span class="lineCov">             14 : random_seed()</span>
<span class="lineNum">     375 </span>                : {
<span class="lineNum">     376 </span><span class="lineCov">             14 :     return s_random_seed;</span>
<span class="lineNum">     377 </span>                : }
<span class="lineNum">     378 </span>                : 
<span class="lineNum">     379 </span>                : //____________________________________________________________________________//
<span class="lineNum">     380 </span>                : 
<span class="lineNum">     381 </span>                : } // namespace runtime_config
<span class="lineNum">     382 </span>                : 
<span class="lineNum">     383 </span>                : } // namespace unit_test
<span class="lineNum">     384 </span>                : 
<span class="lineNum">     385 </span>                : } // namespace boost
<span class="lineNum">     386 </span>                : 
<span class="lineNum">     387 </span>                : //____________________________________________________________________________//
<span class="lineNum">     388 </span>                : 
<span class="lineNum">     389 </span>                : #include &lt;boost/test/detail/enable_warnings.hpp&gt;
<span class="lineNum">     390 </span>                : 
<span class="lineNum">     391 </span>                : #endif // BOOST_TEST_UNIT_TEST_PARAMETERS_IPP_012205GER
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
  <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
  <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LTP GCOV extension version 1.6</a></td></tr>
  </table>
  <br>

</body>
</html>
